import Layout from '@/page/index/'
export default [{
    path: '/wel',
    component: Layout,
    redirect: '/wel/index',
    children: [{
        path: 'index',
        name: '首页',
        component: () =>
            import ( /* webpackChunkName: "views" */ '@/page/wel')
    }]
}, {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [{
        path: 'index',
        name: '个人信息',
        component: () =>
            import ( /* webpackChunkName: "page" */ '@/views/admin/user/info'),
    }]
}, {
  path: '/bpm',
  component: Layout,
  hidden: true,
  redirect: 'noredirect',
  children: [{
    path: 'diy-oa/leave/create',
    component: (resolve) => require(['@/views/bpm/diy-oa/leave/create'], resolve),
    name: '发起 OA 请假',
    meta: {title: '发起 OA 请假', icon: 'form', activeMenu: '/bpm/diy-oa/leave'}
  }, {
    path: 'diy-oa/leave/detail',
    component: (resolve) => require(['@/views/bpm/diy-oa/leave/detail'], resolve),
    name: '查看 OA 请假',
    meta: {title: '查看 OA 请假', icon: 'view', activeMenu: '/bpm/diy-oa/leave'}
  }
  ]
},{
  path: '/bpm',
  component: Layout,
  hidden: true,
  children: [{
    path: 'manager/form/edit',
    component: (resolve) => require(['@/views/bpm/form/formEditor'], resolve),
    name: '流程表单-编辑',
    meta: {title: '流程表单-编辑', activeMenu: '/bpm/manager/form'}
  },{
    path: 'manager/model/design',//访问路径
    component: (resolve) => require(['@/views/bpm/model/modelEditor'], resolve),// 组件路径
    name: '设计流程',
    meta: {title: '设计流程', activeMenu: '/bpm/manager/model'}
  }, {
    path: 'manager/definition',
    component: (resolve) => require(['@/views/bpm/definition/index'], resolve),
    name: '流程定义',
    meta: {title: '流程定义', activeMenu: '/bpm/manager/model'}
  }, {
    path: 'process-instance/create',
    component: (resolve) => require(['@/views/bpm/processInstance/create'], resolve),
    name: '发起流程',
    meta: {title: '发起流程', activeMenu: '/bpm/task/my'}
  }, {
    path: 'process-instance/detail',
    component: (resolve) => require(['@/views/bpm/processInstance/detail'], resolve),
    name: '流程详情',
    meta: {title: '流程详情', activeMenu: '/bpm/task/my'}
  }]
}]
